package EvaluateController

import (
	"QingDai-Gin/api/entities"
	"github.com/gin-gonic/gin"
)

// GetEvaluateByJwt
// @Tags 评价
// @Summary 根据Jwt获取本人评论
// @Router /evaluate/jwt [get]
func GetEvaluateByJwt(context *gin.Context) {
	//UserId, err := JwtUtil.GetUserIdByContext(context)
	//if err != nil {
	//	context.JSON(400, entities.CommonResult{Code: 400, Message: err.Error(), Data: nil})
	//}

	context.JSON(200, entities.CommonResult{Code: 200, Message: "获取优惠卷成功", Data: nil})
}

// CreateEvaluateByJwt
// @Tags 评价
// @Summary 根据Jwt创建评论
// @Router /evaluate/jwt [post]
func CreateEvaluateByJwt(context *gin.Context) {
	context.JSON(200, entities.CommonResult{Code: 200, Message: "获取优惠卷成功", Data: nil})
}

// GetEvaluateById
// @Tags 评价
// @Summary 根据id获取评价
// @Router /evaluate/id [get]
func GetEvaluateById(context *gin.Context) {
	context.JSON(200, entities.CommonResult{Code: 200, Message: "获取优惠卷成功", Data: nil})
}

// GetEvaluateByOrderIdAndJwt
// @Tags 评价
// @Summary 根据OrderId及Jwt获取评价
// @Router /evaluate/jwt/orderId [get]
func GetEvaluateByOrderIdAndJwt(context *gin.Context) {
	context.JSON(200, entities.CommonResult{Code: 200, Message: "获取优惠卷成功", Data: nil})
}

// GetEvaluateByShopId
// @Tags 评价
// @Summary 根据ShopId获取评价
// @Router /evaluate/shopId [get]
func GetEvaluateByShopId(context *gin.Context) {
	context.JSON(200, entities.CommonResult{Code: 200, Message: "获取优惠卷成功", Data: nil})
}

// UpdateEvaluateByIdAndJwt
// @Tags 评价
// @Summary 根据Id及Jwt更改评价
// @Router /evaluate/jwt/id [put]
func UpdateEvaluateByIdAndJwt(context *gin.Context) {
	context.JSON(200, entities.CommonResult{Code: 200, Message: "获取优惠卷成功", Data: nil})
}

// DeleteEvaluateByIdAndJwt
// @Tags 评价
// @Summary 根据Id及Jwt删除评价
// @Router /evaluate/jwt/id [delete]
func DeleteEvaluateByIdAndJwt(context *gin.Context) {
	context.JSON(200, entities.CommonResult{Code: 200, Message: "获取优惠卷成功", Data: nil})
}
